package shop;

public class TestGoodsShop {
    public static void main(String[] args) {
        GoodsShop goodsShop = new GoodsShop();
        Goods g1 = new Goods(001, "可口可乐");
        goodsShop.sellGoods(g1);
        Goods g2 = new Goods(002, "雪碧");
        goodsShop.sellGoods(g2);
        g1.inforshow();
        g2.inforshow();
        double counMoney = goodsShop.getMoney();
        System.out.println("商品出售的价格是：" + counMoney);

    }
}
